const events = require('events');
const ev = new events();

ev.on('event', ()=>{
    console.log('A');
});

ev.addListener('click',()=>{
    console.log('Super Man !');
});

ev.emit('click');
ev.emit('event');

console.info(ev);